import http from '@/http';

export default {
	insert: {
		name: '增加出库单',
		url: '/api/oo',
		call: async function (params: any = {}) {
			return await http.post(this.url, params);
		},
	},
	delete: {
		name: '删除出库单',
		url: '/api/oo',
		call: async function (params: any = {}) {
			return await http.delete(this.url, params);
		},
	},
	update: {
		name: '修改出库单',
		url: '/api/oo',
		call: async function (params: any = {}) {
			return await http.put(this.url, params);
		},
	},
	select: {
		name: '查询出库单',
		url: '/api/oo',
		call: async function (params: any = {}) {
			return await http.get(this.url, params);
		},
	},
	items: {
		name: '查询出库单',
		url: '/api/oo/items',
		call: async function (params: any = {}) {
			return await http.get(this.url, params);
		},
	},
};